let mix = require('laravel-mix');

mix.setPublicPath('public');

mix.copy('node_modules/bootstrap/dist/css/bootstrap.min.css', 'public/css/bootstrap.css')
    .copy('node_modules/bootstrap/dist/js/bootstrap.min.js', 'public/js/bootstrap.js')
    .copy('node_modules/jquery/dist/jquery.min.js', 'public/js/jquery.js')
    .copy('node_modules/axios/dist/axios.min.js', 'public/js/axios.js');

mix.copy('resources/img', 'public/img');

mix.postCss("resources/css/tailwind.css", "css", [
    require("tailwindcss"),
]);

mix.sass('resources/sass/app.scss', 'css');

mix.js('resources/js/app.js', 'js').vue({
    version: 2,
    extractStyles: true,
    globalStyles: 'resources/sass/_variables.scss',
});

if (mix.inProduction()) {
    mix.version();
}
